<include file="Manager:leftmenu" />
<div class="content-right fl">

	<table class="wxtables mgt10">
		<colgroup>
			<col width="5%">
			<col width="9%">
			<col width="9%">
			<col width="9%">
			<col width="9%">
			<col width="9%">
			<col width="9%">
			<col width="10%">
			<col width="10%">
			<col width="17%">
		</colgroup>
		<thead>

			<tr class="po_list">
				<td>编号<span></span></td>
				
				<td>用户名<span></span></td>
				<td>商城用户ID<span></span></td>
				<td>头像<span></span></td>
				<td>昵称<span></span></td>

				<td>用户角色<span></span></td>
				<td>登录次数<span></span></td>
				<td>最近登录<span></span></td>
				<td>最近IP<span></span></td>
			  <td>操作<span></span></td>
			</tr>
		</thead>
		<tbody>
		<?php foreach($datalist as $k=>$v){?>
			<tr>
				<td><?php echo $v['adminuid'];?></td>
				<td><?php echo $v['username'];?></td>
				<td><?php echo $v['uid'];?></td>
				
				<td><img src="<?php echo $v['headimgurl'];?>" width="60"></td>
				<td><?php echo emoji_unified_to_html($v['nickname']);?></td>
				
				<td><?php echo $v['role_name'];?></td>
				<td><?php echo $v['login_nums'];?></td>
				<td><?php echo $v['login_time'];?></td>
				<td><?php echo $v['login_ip'];?></td>
				<!--  <td><?php echo $v['status']==1 ? "正常":"禁用";?></td>-->
			  <td>
			  
			  	<?php if(($v['adminuid'] == 1) && ($admininfo['adminuid']!=1)){ ?>

			  	<?php }else{ ?>
			  		<a href="/admin/manager/addmanager/?id=<?php echo $v['adminuid'];?>" class="btn width" title="修改">编辑</a>
			  	<?php } ?>
			  
				<?php if($v['adminuid'] != 1){ ?>
					<a href="javascript:del(<?php echo $v['adminuid'];?>);" class="btn j-del" title="删除" data-id="2416530">删除</a>
				<?php } ?>
			</tr>
		<?php } ?>
		</tbody>
	</table>
</div>
<script>
function del(id){

	//询问框
	layer.confirm('你确定要删除吗？', {
	    btn: ['确定','我再想想'] //按钮
	}, function(){
		var url = "/admin/manager/del/?id="+id;
		AjaxUrl(url);
	}, function(){


	});
	
	
	
}

</script>